package com.example.springboot_admin.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author svblack
 * @since 2024-09-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("spus")
public class Spus implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "spu_id", type = IdType.AUTO)
    private Integer spu_id;

    @TableField("name")
    private String name;

    @TableField("description")
    private String description;

    @TableField("min_price")
    private BigDecimal min_price;

    @TableField("image_url")
    private String image_url;

    @TableField("status")
    private Integer status;

    @TableField("category_id")
    private Integer category_id;

    @TableField(exist = false)
    private String category_name;
}
